package com.ywgt.system.mapper;

import com.github.pagehelper.Page;
import com.ywgt.system.pojo.Product;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yiping
 * @since 2021-01-22
 */
public interface ProductMapper extends BaseMapper<Product> {

    Product getProductByNum(@Param("num") String num);

    Page<Product> findAllStocks(@Param("name") String name,@Param("oneCategoryId") String oneCategoryId,
                                @Param("twoCategoryId") String twoCategoryId,@Param("threeCategoryId") String threeCategoryId);
}
